#include <iostream>
#include <queue>
#include <map>
#include <unordered_map>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <set>
#include <unordered_set>
using namespace std;
typedef long long ll;
typedef unsigned long long Ull;
typedef pair<int,int> PII;
const int INF=0x3f3f3f3f;
int a[35]={99, 22, 51, 63, 72, 61, 20, 88, 40, 21, 63, 30, 11, 18, 99, 12, 93, 16, 7, 53, 64, 9, 28, 84, 34, 96, 52, 82, 51, 77};
int main()
{
	int n=0;
	for(int i=0;i<30;i++)
	{
		for(int j=i+1;j<30;j++)
		{
			if(a[i]*a[j]>=2022)
			{
							n++;
			}
		

		}
	}
	cout<<n;

	return 0;
}

